# 子服务 gitee 地址
SUB_SERVICE_GIT=(
  'https://gitee.com/he_xingneng/qiankun_main.git' 
  'https://gitee.com/he_xingneng/qiankun_vue.git' 
  'https://gitee.com/he_xingneng/qiankun_react.git')
SUB_SERVICE_NAME=('main' 'vue' 'react')

# 子服务
# if [ ! -d "sub-service" ]; then
#   echo '创建sub-service目录...'
#   mkdir sub-service
# fi
# echo '进入sub-service目录...'
# cd sub-service

# 遍历克隆微服务
for i in ${!SUB_SERVICE_NAME[@]}
do
  if [ ! -d ${SUB_SERVICE_NAME[$i]} ]; then
    echo '克隆微服务项目'${SUB_SERVICE_NAME[$i]}
    git clone ${SUB_SERVICE_GIT[$i]}
  fi
done
 
echo '脚本结束...'
# 克隆完成